package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.CarInformation;
import cn.wolfcode.crm.query.impl.CarInformationQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarInformationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CarInformation record);

    CarInformation selectByPrimaryKey(Long id);

    List<CarInformation> selectAll();

    int updateByPrimaryKey(CarInformation record);

    int queryForCount(CarInformationQuery qo);

    List<CarInformation> queryForList(CarInformationQuery qo);

    CarInformation getCar(@Param("name") String name, @Param("carnumber") String carnumber);
}